﻿#region 命名空间

using System;
using System.ComponentModel;
using System.Configuration;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.BLL
{
    public partial class CMSConfig
    {
        [Serializable, DataContract]
        public class MemberConfig
        {
            public MemberConfig()
            {
                JingBiHuiLv = 2000;
                Payment = string.Empty;
                Coin = 20;
                MemberRoleID = 1;
                Point = 10;
                JingBiMingCheng = string.Empty;
                JianYanHuiLv = 2000;
                IsReg = true;
                MemberUpLoadFolder = @"~\UpLoadFolder\";
            }

            /// <summary>
            /// 是否允许新用户注册？
            /// </summary>
            [DisplayName("是否允许新用户注册？"), DataMember]
            public bool IsReg { get; set; }


            /// <summary>
            /// 注册会员是否要管理员认证？
            /// </summary>
            [DisplayName("注册会员是否要管理员认证？"), DataMember]
            public bool IsAdminCheck { get; set; }

            /// <summary>
            /// 是否检查验证码？
            /// </summary>
            [DisplayName("是否检查验证码？"), DataMember]
            public bool IsPassCode { get; set; }

            /// <summary>
            ///  经验值转点数汇率
            /// </summary>
            [DisplayName("经验值转点数汇率"), DataMember]
            public double JianYanHuiLv { get; set; }


            /// <summary>
            ///  金币转点数汇率
            /// </summary>
            [DisplayName("金币转点数汇率"), DataMember]
            public double JingBiHuiLv { get; set; }

            /// <summary>
            ///  金币名称
            /// </summary>
            [DisplayName("金币名称"), DataMember]
            public string JingBiMingCheng { get; set; }


            /// <summary>
            /// 默认的会员角色
            /// </summary>
            [DisplayName("默认的会员角色"), DataMember]
            public int MemberRoleID { get; set; }


            /// <summary>
            /// 默认的点数
            /// </summary>
            [DisplayName("默认的点数"), DataMember]
            public int Point { get; set; }


            /// <summary>
            /// 默认金币
            /// </summary>
            [DisplayName("默认金币"), DataMember]
            public int Coin { get; set; }

            /// <summary>
            /// 上传路径
            /// </summary>
            [DisplayName("上传路径"), DataMember]
            public string MemberUpLoadFolder { get; set; }


            /// <summary>
            /// 付款方式
            /// </summary>
            [DisplayName("付款方式"), DataMember]
            public string Payment { get; set; }
        }
    }
}